<%@ page language="java" import="java.util.*, com.zjut.zs.applyview.manager.*, com.zjut.zs.applyview.dao.*, com.zjut.an.util.tools.*,com.zjut.an.util.system.*" pageEncoding="utf-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=Config.webname%></title>
	<link href="../plugins/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="../plugins/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="../plugins/assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
	<link href="../plugins/assets/css/style-metronic.css" rel="stylesheet" type="text/css"/>
	<link href="../plugins/assets/css/style.css" rel="stylesheet" type="text/css"/>
	<link href="../plugins/assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
	<link href="../plugins/assets/css/plugins.css" rel="stylesheet" type="text/css"/>
	<link rel="shortcut icon" href="favicon.ico" />
	
	<!-- 引入 ECharts 文件 -->
    <script src="../plugins/echarts/echarts.min.js"></script>
</head>
<%
ZsApplyViewManager manager = (ZsApplyViewManager)SpringContextUtil.getBean("ZsApplyViewManager");
%>
<body class="page-header-fixed">
	<jsp:include page="systemrolevalidate.jsp" flush="true">
	<jsp:param name="m" value="systempower"/>
	</jsp:include>
	<div class="clearfix"></div>
	<div class="page-container">
		<div class="">
		
		
			<div class="row">
				<div class="col-md-12 ">
					<div class="alert alert-warning">
						<span class="label label-danger">注意!</span>
						<span>
						请使用xls后缀的EXCEL文件上传，EXCEL文件字段格式请参考 <a href="模板0.xls" target='_blank'>模板</a>
						<br/>标签信息可以自定义填写，但要在20个字以下
						</span>
							</div>
			
			<form id="ff" role="form" class="form-horizontal form-row-seperated" action="" enctype="multipart/form-data" method="post">  
				<div class="form-group">  
					<label class="col-md-2 control-label" for="name">选择EXCEL文件</label>  
                    <div class="col-md-10">
                    	<input type="file" name="file" class="default" />                    	
                    </div>
				</div>
					
                <div class="form-group">  
                    <label class="col-md-2 control-label" for="name"></label>  
                    <div class="col-md-10">   
                        <button type="submit" class="btn btn-primary btn-sm" onclick="doUpload()">导入 </button>                         
                    </div>  
                </div>  
            </form> 

				</div>
			</div>
		</div>
	</div>
	<script src="../plugins/assets/plugins/jquery-1.10.2.min.js" type="text/javascript"></script>
	<script src="../plugins/assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>    
	<script src="../plugins/assets/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<script src="../plugins/assets/plugins/bootstrap-hover-dropdown/twitter-bootstrap-hover-dropdown.min.js" type="text/javascript" ></script>
	<script src="../plugins/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
	<script src="../plugins/assets/plugins/jquery.blockui.min.js" type="text/javascript"></script>  
	<script src="../plugins/assets/plugins/jquery.cookie.min.js" type="text/javascript"></script>
	<script src="../plugins/assets/plugins/uniform/jquery.uniform.min.js" type="text/javascript" ></script>
	<script src="../plugins/assets/scripts/app.js"></script>  
	
	<script src="../plugins/assets/plugins/jquery-validation/dist/jquery.validate.js" type="text/javascript"></script>
	<script src="js/publicManager.js" type="text/javascript" charset="utf-8"></script>  
	
	<script>
	jQuery(document).ready(function() {       
		   App.init();
		});
	
	function doUpload() {  
     var formData = new FormData($("#ff")[0]);  
     $.ajax({  
          url: '../excelUpdateDatas0.action' ,  
          type: 'POST',  
          data: formData,  
          async: false,  
          cache: false,  
          contentType: false,  
          processData: false,  
          success: function (returndata) {  
              alert(returndata.msg);  
          },  
          error: function (returndata) {  
              alert(returndata.msg);  
          }  
     });  
}  	
	</script>
</body>
</html>